Skip to content

Enhance the push cmd to also track the newly pushed branch#2049

Open
kevzoid wants to merge 1 commit intoprogit:mainfrom
kevzoid:enhanced-fork-push
Open

Enhance the push cmd to also track the newly pushed branch#2049
kevzoid wants to merge 1 commit intoprogit:mainfrom
kevzoid:enhanced-fork-push

Conversation

@kevzoid
Copy link

@kevzoid kevzoid commented Sep 13, 2025

Changes

The git push examples for new branches have been updated to include the -u flag, which sets the upstream tracking branch.

Context

This change adds the -u flag to the initial git push for these new branches. Because these branches are newly created locally, they don't yet track a remote branch. This update makes the examples consistent with others in the section and reflects a modern best practice that simplifies all future push and pull commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant